package com.lsz.flight_system.service;

import com.lsz.flight_system.entity.BuyTicketsMessage;
import com.lsz.flight_system.entity.PlaneMessage;

import java.util.List;
import java.util.Map;

public interface PlaneMessageService {

    List<PlaneMessage> findAllPlaceMessage(Map<String, Object> map);

    PlaneMessage findByPlaneId(String planeId);

    boolean updateRemainTicket(String planeId);

    BuyTicketsMessage userChangeTickets(Long id, String planeId);

    boolean delPlaneMessageById(String planeId);

    boolean editPlaneMessage(PlaneMessage planeMessage);

    PlaneMessage getPlaneMessage(String planeId, String origin, String destination, String startTime, String arriveTime, int seats, int remainTicket, float ticketPrice, String planeState,String planeRoute);
}